﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.WorkFlow_Run_Processs;
using LeadThing.AbpZeroTemplate.EntityFramework;

namespace LeadThing.AbpZeroTemplate.WorkFlow_Run_Processs.EntityMapper.WorkFlow_Run_Processs
{

    /// <summary>
    /// 实例节点流转明细的数据配置文件
    /// </summary>
    public class WorkFlow_Run_ProcessCfg : EntityTypeConfiguration<WorkFlow_Run_Process>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public WorkFlow_Run_ProcessCfg()
        {
            ToTable("WorkFlow_Run_Process", AbpZeroTemplateConsts.SchemaName.Basic);

            // 应办理人
            Property(a => a.YBLR).HasMaxLength(500);
            // 办理人
            Property(a => a.BLR).HasMaxLength(500);
            // 步骤类型is_one发起is_step正常步骤is_end办结
            Property(a => a.ProcessType).HasMaxLength(50);
            // 办理备注
            Property(a => a.Content).HasMaxLength(500);
        }
    }
}